package com.yc.happ.entity;

import java.io.Serializable;

public class Elder implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7309148845530126917L;
	
	private Integer vid;
	private String vname;
	private String vuname;
	private String vpassword;
	private String vsex;
	private String vaddress;
	private String vaddress3;
	private String vphone;
	private Integer isChoose;
	
	
	public Elder() {
		
	}
	public Elder(Integer vid, String vname, String vuname, String vpassword, String vsex, String vaddress,
			String vaddress3, String vphone, Integer isChoose) {
		super();
		this.vid = vid;
		this.vname = vname;
		this.vuname = vuname;
		this.vpassword = vpassword;
		this.vsex = vsex;
		this.vaddress = vaddress;
		this.vaddress3 = vaddress3;
		this.vphone = vphone;
		this.isChoose = isChoose;
	}
	public Integer getVid() {
		return vid;
	}
	public void setVid(Integer vid) {
		this.vid = vid;
	}
	public String getVname() {
		return vname;
	}
	public void setVname(String vname) {
		this.vname = vname;
	}
	public String getVuname() {
		return vuname;
	}
	public void setVuname(String vuname) {
		this.vuname = vuname;
	}
	public String getVpassword() {
		return vpassword;
	}
	public void setVpassword(String vpassword) {
		this.vpassword = vpassword;
	}
	public String getVsex() {
		return vsex;
	}
	public void setVsex(String vsex) {
		this.vsex = vsex;
	}
	public String getVaddress() {
		return vaddress;
	}
	public void setVaddress(String vaddress) {
		this.vaddress = vaddress;
	}
	public String getVaddress3() {
		return vaddress3;
	}
	public void setVaddress3(String vaddress3) {
		this.vaddress3 = vaddress3;
	}
	public String getVphone() {
		return vphone;
	}
	public void setVphone(String vphone) {
		this.vphone = vphone;
	}
	public Integer getIsChoose() {
		return isChoose;
	}
	public void setIsChoose(Integer isChoose) {
		this.isChoose = isChoose;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((isChoose == null) ? 0 : isChoose.hashCode());
		result = prime * result + ((vaddress == null) ? 0 : vaddress.hashCode());
		result = prime * result + ((vaddress3 == null) ? 0 : vaddress3.hashCode());
		result = prime * result + ((vid == null) ? 0 : vid.hashCode());
		result = prime * result + ((vname == null) ? 0 : vname.hashCode());
		result = prime * result + ((vpassword == null) ? 0 : vpassword.hashCode());
		result = prime * result + ((vphone == null) ? 0 : vphone.hashCode());
		result = prime * result + ((vsex == null) ? 0 : vsex.hashCode());
		result = prime * result + ((vuname == null) ? 0 : vuname.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Elder other = (Elder) obj;
		if (isChoose == null) {
			if (other.isChoose != null)
				return false;
		} else if (!isChoose.equals(other.isChoose))
			return false;
		if (vaddress == null) {
			if (other.vaddress != null)
				return false;
		} else if (!vaddress.equals(other.vaddress))
			return false;
		if (vaddress3 == null) {
			if (other.vaddress3 != null)
				return false;
		} else if (!vaddress3.equals(other.vaddress3))
			return false;
		if (vid == null) {
			if (other.vid != null)
				return false;
		} else if (!vid.equals(other.vid))
			return false;
		if (vname == null) {
			if (other.vname != null)
				return false;
		} else if (!vname.equals(other.vname))
			return false;
		if (vpassword == null) {
			if (other.vpassword != null)
				return false;
		} else if (!vpassword.equals(other.vpassword))
			return false;
		if (vphone == null) {
			if (other.vphone != null)
				return false;
		} else if (!vphone.equals(other.vphone))
			return false;
		if (vsex == null) {
			if (other.vsex != null)
				return false;
		} else if (!vsex.equals(other.vsex))
			return false;
		if (vuname == null) {
			if (other.vuname != null)
				return false;
		} else if (!vuname.equals(other.vuname))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Elder [vid=" + vid + ", vname=" + vname + ", vuname=" + vuname + ", vpassword=" + vpassword + ", vsex="
				+ vsex + ", vaddress=" + vaddress + ", vaddress3=" + vaddress3 + ", vphone=" + vphone + ", isChoose="
				+ isChoose + "]";
	}
	
}
